<%--
  Created by IntelliJ IDEA.
  User: 11382
  Date: 2022/5/19
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <style>
        body{
            padding-top: 60px;
        }
        h1{
            text-align: center;
        }
    </style>
    <%--导入依赖--%>
    <%--页面二级标题--%>
    <jsp:include page="/WEB-INF/pages/module/head.jsp">
        <jsp:param name="title_2" value="发帖编辑页"/>
    </jsp:include>
    <script src="/static/lib/tinymce/tinymce.min.js"></script>
    <script src="/static/js/createArticle.js"></script>
</head>
<body>
<%--导入导航栏--%>
<jsp:include page="/WEB-INF/pages/module/navbar.jsp">
    <jsp:param name="permission" value="1"/>
</jsp:include>
    <form method="post" action="/createArticle.do">
        标题:
        <div class="mb-3" style="display: inline-block">
            <input style="display: inline-block" maxlength="30"
                   type="text" class="form-control" id="title" name="title">
        </div>
        权限:
        <div class="mb-3" style="display: inline-block">
            <input style="display: inline-block" type="text" onkeyup="this.value=this.value.replace(/\D/g,'')"
            maxlength="3" value="265" class="form-control" id="permission" name="articlePermission">
        </div>
        (在0-266之间,265为隐藏贴，仅发帖人可阅读，266为删除的帖子)
        <div style="float: right">
            <button type="submit" class="btn btn-info" id="postArticle">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-send" viewBox="0 0 16 16">
                    <path d="M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z"/>
                </svg>
                将帖子加入“微梦岛”智库
            </button>
        </div>
        <input type="text" id="code" name="articleUniqueCode" style="display:none">
        <textarea id="newArticle" name="newArticle">
            <h3 style="text-align:center" id="text-title">这里是标题哦~最好不要删掉它~</h3>
            <br>
            <hr>
<%--            <br>--%>
            这里是文章体~
        </textarea>
    </form>

</body>
</html>
